﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using QLab.Model;
using QLab.Controllers;
using System.ComponentModel.Composition;

namespace QLab.UserControls
{
	/// <summary>
	/// Interaction logic for ConsoleWPF.xaml
	/// </summary>
	[Export]
	[PartCreationPolicy(CreationPolicy.Shared)]
	public partial class ConsoleView : UserControl
	{
		ConsoleController _controller;
		CommandHistoryModel _commands;

		[ImportingConstructor]
		public ConsoleView()
		{
			InitializeComponent();
			//_controller=new ConsoleController(_commands=new CommandHistoryModel(), this);
		}

		#region Properties

		[Import]
		public ConsoleController Controller 
		{ 
			get { return _controller; }
			set { _controller = value; _controller.View = this; }
		}

		#endregion
	}
}
